package com.tope365.devops;


import com.intellij.DynamicBundle;
import org.jetbrains.annotations.NonNls;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.PropertyKey;

public class MyBundle extends DynamicBundle {

    private static final String BUNDLE = "messages.MyBundle";

    public MyBundle(@NotNull Class<?> bundleClass, @NotNull String pathToBundle) {
        super(bundleClass, pathToBundle);
    }

    public MyBundle(@NotNull String pathToBundle) {
        super(pathToBundle);
    }

    public String message(@PropertyKey(resourceBundle = BUNDLE) String key, Object... params) {
        return getMessage(key, params);
    }

    public Object messagePointer(@PropertyKey(resourceBundle = BUNDLE) String key, Object... params) {
        return getLazyMessage(key, params);
    }
}

